package com.yi.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 请求访问测试接口
 * @author YI
 * @date 2018-3-15 15:51:40
 */
@Controller
@RequestMapping("/api")
public class HelloController {

    @RequestMapping("/say")
    @ResponseBody
    public String say(String name){
        return "Hello Spring Boot for " + name + "!";
    }
}
